<?php
/**
 * @package WordPress
 * @subpackage WP_Framework
 */

get_header();
?>
			<!--BEGIN #primary-->
			<div id="primary" class="hfeed">
				<?php if ( have_posts() ) : ?>
				
				<?php /* If this is a category archive */ if ( is_category() ) { ?>
				<h1 class="archive-title">Archive for the &#8216;<?php single_cat_title(); ?>&#8217; Category</h1>
				<?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
				<h1 class="archive-title">Posts Tagged &#8216;<?php single_tag_title(); ?>&#8217;</h1>
				<?php /* If this is a daily archive */ } elseif ( is_day() ) { ?>
				<h1 class="archive-title">Archive for <?php the_time( 'F jS, Y' ); ?></h1>
				<?php /* If this is a monthly archive */ } elseif ( is_month() ) { ?>
				<h1 class="archive-title">Archive for <?php the_time( 'F, Y' ); ?></h1>
				<?php /* If this is a yearly archive */ } elseif ( is_year() ) { ?>
				<h1 class="archive-title">Archive for <?php the_time( 'Y' ); ?></h1>
				<?php /* If this is an author archive */ } elseif ( is_author() ) { ?>
				<h1 class="archive-title">Author Archive</h1>
				<?php /* If this is a paged archive */ } elseif ( isset($_GET['paged'] ) && !empty( $_GET['paged'] ) ) { ?>
				<h1 class="archive-title">Archives</h1>
				<?php } ?>
					<?php while ( have_posts() ) : the_post(); ?>
				
				<!--BEGIN #hentry-->
				<div id="post-<?php the_ID(); ?>" class="hentry">
					<h2 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2> 
					
					<p class="entry-meta">Written by <span class="author vcard"><?php printf( '<a class="url fn" href="' . get_author_link( false, $authordata->ID, $authordata->user_nicename ) . '" title="' . sprintf( 'View all posts by %s', $authordata->display_name ) . '">' . get_the_author() . '</a>' ) ?></span> on <abbr class="published" title="<?php the_time('c'); ?>"><?php the_time( 'F jS, Y' ); ?></abbr> <span class="meta-sep">&mdash;</span> <span class="comment-count"><a href="<?php comments_link(); ?>"><?php comments_number( 'Leave a Comment', '1 Comment', '% Comments' ); ?></a></span> <?php edit_post_link( 'Edit', '<span class="edit-post">[', ']</span>' ); ?></p>
					
					<!--BEGIN #entry-summary-->
					<div class="entry-summary">
						<?php the_excerpt(); ?>
					<!--END #entry-summary-->
					</div>                
				<!--END #entry-->
				</div>
				
					<?php endwhile; ?>
	
				<?php include ( TEMPLATEPATH . '/navigation.php' ); ?>
	
				<?php else : ?>
			
				<!--BEGIN #four04-->
				<div id="post-0" class="hentry four04">
					<h2 class="entry-title">Not Found</h2>
					
					<!--BEGIN #entry-content-->
					<div class="entry-content">
						<p>Sorry, but you are looking for something that isn't here.</p>
						<?php include (TEMPLATEPATH . '/searchform.php'); ?>
					<!--END #entry-content-->
					</div>
				<!--END #four04-->
				</div>
			
				<?php endif; ?> 
			<!--END #primary-->
			</div>
        
<?php get_sidebar(); ?>

<?php get_footer(); ?>